package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ErpClearanceMapper;
import com.ruoyi.system.domain.ErpClearance;
import com.ruoyi.system.service.IErpClearanceService;

/**
 * 清关申请Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-26
 */
@Service
public class ErpClearanceServiceImpl implements IErpClearanceService 
{
    @Autowired
    private ErpClearanceMapper erpClearanceMapper;

    /**
     * 查询清关申请
     * 
     * @param id 清关申请主键
     * @return 清关申请
     */
    @Override
    public ErpClearance selectErpClearanceById(Long id)
    {
        return erpClearanceMapper.selectErpClearanceById(id);
    }

    /**
     * 查询清关申请列表
     * 
     * @param erpClearance 清关申请
     * @return 清关申请
     */
    @Override
    public List<ErpClearance> selectErpClearanceList(ErpClearance erpClearance)
    {
        return erpClearanceMapper.selectErpClearanceList(erpClearance);
    }

    /**
     * 新增清关申请
     * 
     * @param erpClearance 清关申请
     * @return 结果
     */
    @Override
    public int insertErpClearance(ErpClearance erpClearance)
    {
        return erpClearanceMapper.insertErpClearance(erpClearance);
    }

    /**
     * 修改清关申请
     * 
     * @param erpClearance 清关申请
     * @return 结果
     */
    @Override
    public int updateErpClearance(ErpClearance erpClearance)
    {
        return erpClearanceMapper.updateErpClearance(erpClearance);
    }

    /**
     * 批量删除清关申请
     * 
     * @param ids 需要删除的清关申请主键
     * @return 结果
     */
    @Override
    public int deleteErpClearanceByIds(Long[] ids)
    {
        return erpClearanceMapper.deleteErpClearanceByIds(ids);
    }

    /**
     * 删除清关申请信息
     * 
     * @param id 清关申请主键
     * @return 结果
     */
    @Override
    public int deleteErpClearanceById(Long id)
    {
        return erpClearanceMapper.deleteErpClearanceById(id);
    }
}
